<?php
use yii\helpers\Url;

$web = Url::base();

$site_name = \app\models\Mall::getCurrentInstitutionSiteName();
$this->title = $site_name . '-意见反馈';
?>

<link rel="stylesheet" type="text/css" href="<?= $web ?>/css/mall-m/feedback.css"/>

<div class="main">
    <div class="feedback-type">
        <p class="title">反馈类型</p>
        <div class="type">
            <ul>
                <li>软件问题</li>
                <li>物流问题</li>
                <li>商品问题</li>
                <li>服务问题</li>
                <li>退换货问题</li>
                <li>其他问题</li>
            </ul>
        </div>
        <script type="text/javascript">
            $(function () {
                $(".type ul li").click(function () {
                    $(this).addClass("select-type");
                    $(this).siblings().removeClass("select-type");
                })
            })
        </script>
    </div>
    <div class="feedback-content">
        <p class="title">反馈内容</p>
        <div class="contener">
            <textarea id="focus" autoHeight="true" placeholder="乐意聆听对鑫泰手机客户端的任何意见或建议"></textarea>
        </div>
        <script type="text/javascript">
            $.fn.autoHeight = function () {

                function autoHeight(elem) {
                    elem.style.height = 'auto';
                    elem.scrollTop = 0; //防抖动
                    elem.style.height = elem.scrollHeight + 'px';
                }

                this.each(function () {
                    autoHeight(this);
                    $(this).on('keyup', function () {
                        autoHeight(this);
                    });
                });

            }

            $('textarea[autoHeight]').autoHeight();
        </script>
    </div>
    <div class="contact-way">
        <p class="title">联系方式</p>
        <input type="text" placeholder="请输入手机号或邮箱（选填）" value=""/>
    </div>
    <a href="">
        <div class="send-btn">
            <input type="button" value="发送"/>
        </div>
    </a>
</div>
